{% set clazz = "details"; %}
{% set title = "推广码详情"; %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" href="{{ '/static/css/promoter.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1>{{ title }}</h1>
    </header>
  {% endif %}
  <section class="has-header">
    <div class="summary text-center">
      <img class="figure center-block" src="{{ member.memberAvatar|figure }}" />
      <p class="text-sm">当前推广累计奖励积分</p>
      <p class="text-orange integral">{{ entity.depositNum|promoterIntegral(0) }}</p>
    </div>
    <div class="list">
      <div class="item">注册时间：{{ entity.createTime|date('Y-m-d H:i:s') }}</div>
      <div class="item">类型：{{ entity.accountType|promoterType }}</div>
      <div class="item">姓名：{{ entity.name }}</div>
      {% if entity.accountType == 2 %}
        <div class="item">所属物业：{{ entity.propertyName }}</div>
        <div class="item">所属项目：{{ entity.projectName }}</div>
        <div class="item">身份证号码：{{ entity.idNumber|secureIDCard }}</div>
        <div class="item">岗位：{{ entity.accountJob|promoterJob }}</div>
        {% elif entity.accountType == 3 %}
        <div class="item">开户行：{{ entity.bank.bankName }}{{ entity.bank.bankBranch }}</div>
        <div class="item">银行卡号：{{ entity.bank.bankCardNo|secureBankCard }}</div>
      {% endif %}
    </div>
    <div class="list">
      <a class="item" href="/promoter/rewards">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-f488bc4a-b5b4-4b15-a638-94f5d5c89bb0.png" ui-mode="50px" />
        </div>
        <span class="text">推广奖励积分明细</span>
        <i class="icon text-gray">&#xe61a;</i>
      </a>
      <a class="item" href="/promoter/members">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-93107846-2a87-44ee-b46e-7de222b11f9b.png" ui-mode="50px" />
        </div>
        <span class="text">推广的用户</span>
        <i class="icon text-gray">&#xe61a;</i>
      </a>
      <a class="item" href="/integral">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-4ede0b5f-1707-449d-bb90-fdedfea25728.png" ui-mode="50px" />
        </div>
        <span class="text">积分商城</span>
        <i class="icon text-gray">&#xe61a;</i>
      </a>
      <a class="item" href="/promoter/protocol">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-7e89a377-8304-489a-87d5-33d009218ae6.png" ui-mode="50px" />
        </div>
        <span class="text">推广员协议</span>
        <i class="icon text-gray">&#xe61a;</i>
      </a>
    </div>
  </section>
{% endblock %}
{% block script %}{% endblock %}